package com.aircms.dao;

import com.aircms.pojo.News;
import com.aircms.pojo.validation.BaseQueryFieldsValidation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface NewsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(News record);

    int insertSelective(News record);

    News selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKeyWithBLOBs(News record);

    int updateByPrimaryKey(News record);

    List<News> selectAll(BaseQueryFieldsValidation baseQueryFields);

    int setStatus(@Param("id") Integer id, @Param("status") Integer status);
}